home *** CD-ROM | disk | FTP | other *** search
- WINDEX.DOC
-
- 1. PROCEDURES AVAILABLE:
-
- OpenWindow(X1,Y1,X2,Y2, {screen coordinates of border}
- Foreground,
- Background, {text attributes}
- Border, {"Single", "Double", or 32..254}
- Heading, {optional window title of 'string'}
- WhereSaved); {"Ram" or "Disk"}
-
- CloseWindow;
-
-
- 2. USAGE:
-
- See WindTest.PAS for examples of how these procedures are used. The pro-
- cedure CloseWindow closes the most recently opened window and you just keep
- calling it until you get down to the level that you want. You can mix and
- match "disk" and "ram" as locations for the saved window image and the
- CloseWindow procedure will find it when needed. If you save to Ram the
- minimum amount of memory required to hold the image will be allocated on
- the heap and then released when CloseWindow is called; This is both fast
- and efficient as the heap is restored in such a way that granularity will
- not usually result. The slower alternative of saving to and restoring from disk uses zero heap memory.
- Do not use this unit if you are using Turbo Pascal's windows directly
- in the same program. Problems will develop if you call a Windex function
- while within a window you created with the Window() procedure.
-
-
- 3. FILES IN ARCHIVE:
-
- Windex.PAS - Source code for window routines.
- WindTest.PAS - A demonstration of Windex usage.
- Windex.DOC - This file.
-
-
- 4. COMMENTS:
-
- This unit was tested ON BOTH an EGA moniter (IN CGA and EGA modes) as
- well as on a mono moniter. They work flawlessly. Note that screens are
- restored directly to video memory and that snow may result on some screens.
- This code contains one fix to the original which now makes certain that
- the screen images can be stored either to ram or disk without causing your
- program t/b confused about their whereabouts.
-
-
- John Roncalio - BlueRibbon Software
-
- 34439 Ascott Avenue 603 Cherry Street
- Abbotsford, B.C. Sumas, Washington
- CANADA V2S 4V6 U.S.A. 98295
-
- CIS [72377,1657]